package com.sinocare.system.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sinocare.common.entity.SystemSettings;
import com.sinocare.common.vo.SystemSettingsVo;
import com.sinocare.system.mapper.SettingsMapper;
import com.sinocare.system.service.SettingsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SettingsServiceImpl extends ServiceImpl<SettingsMapper, SystemSettings> implements SettingsService {
    @Resource
    private SettingsMapper settingsMapper;

    @Override
    public List<SystemSettings> listSettings(SystemSettingsVo systemSettingsVo) {
        return settingsMapper.listSettings(systemSettingsVo);
    }

    @Override
    public List<SystemSettingsVo> querySettings() {
        return settingsMapper.querySettings();
    }

    @Override
    public int updateSettings(SystemSettings systemSettings) {
        return settingsMapper.updateSettings(systemSettings);
    }

    @Override
    public int addSettings(SystemSettings systemSettings) {
        return settingsMapper.addSettings(systemSettings);
    }

}
